//
//  BQHomeGoodsTopCellCollectionViewCell.m
//  BeeQuick
//
//  Created by mac on 16/11/22.
//  Copyright © 2016年 six_group. All rights reserved.
//

#import "BQHomeGoodsTopCellCollectionViewCell.h"
#import <UIImageView+WebCache.h>
@interface BQHomeGoodsTopCellCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UIImageView *iconView;


@end

@implementation BQHomeGoodsTopCellCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.backgroundColor = [UIColor whiteColor];
}


- (IBAction)moreButtonClick:(UIButton *)sender {
    
    NSLog(@"点击了更多按钮,跳转到超市");
    
}

- (void)setModel:(BQActRowModel *)model
{
    _model = model;
    
    
    self.titleLabel.text = model.category_detail.name;
    
    
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:model.activity.img]];
    
    
}

@end
